VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / Fill Method / Fill(DataTable[],IDataReader,Int32,Int32) Method
A collection of System.Data.DataTable objects to fill with records.
An instance of System.Data.IDataReader.
The zero-based index of the starting record.
An integer indicating the maximum number of records.


In This Topic
    Fill(DataTable[],IDataReader,Int32,Int32) Method
    In This Topic
    Adds or refreshes rows in a specified range in the collection of System.Data.DataTable objects to match those in the data source.
    Syntax
    'Declaration
     
    
    Protected Overloads Function Fill( _
       ByVal dataTables() As System.Data.DataTable, _
       ByVal dataReader As System.Data.IDataReader, _
       ByVal startRecord As System.Integer, _
       ByVal maxRecords As System.Integer _
    ) As System.Integer
    'Usage
     
    
    Dim instance As VistaDBDataAdapter
    Dim dataTables() As System.Data.DataTable
    Dim dataReader As System.Data.IDataReader
    Dim startRecord As System.Integer
    Dim maxRecords As System.Integer
    Dim value As System.Integer
     
    value = instance.Fill(dataTables, dataReader, startRecord, maxRecords)
    protected System.int Fill( 
       System.Data.DataTable[] dataTables,
       System.Data.IDataReader dataReader,
       System.int startRecord,
       System.int maxRecords
    )

    Parameters

    dataTables
    A collection of System.Data.DataTable objects to fill with records.
    dataReader
    An instance of System.Data.IDataReader.
    startRecord
    The zero-based index of the starting record.
    maxRecords
    An integer indicating the maximum number of records.

    Return Value

    The number of rows successfully added to or refreshed in the System.Data.DataTable. This does not include rows affected by statements that do not return rows.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also